﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SmartApi.Annotations
{
    public enum PatameterPosition
    {
        UrlPath = 1 << 0,
        Header = 1 << 1,
        Query = 1 << 2,
        Body = 1 << 3
    }
    [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Property)]
    public class ParamAttribute : Attribute
    {
        public ParamAttribute() : this(null)
        {

        }
        public ParamAttribute(string alias = null)
        {
            Alias = alias;
        }
        public String Alias { get; set; }
        public PatameterPosition Position { get; set; }
    }
}
